package com.qiyeji.real_estate.entity;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.annotation.write.style.ContentRowHeight;
import com.alibaba.excel.annotation.write.style.HeadRowHeight;

@ContentRowHeight(20) // 设置内容高度
@HeadRowHeight(50)// 设置表头高度
public class payroll extends payrollKey {

    @ExcelProperty(value = {"基础工资"}, index = 3)
    @ColumnWidth(20)// 设置行宽
    private Float basesalary;

    @ExcelProperty(value = {"奖金"}, index = 4)
    @ColumnWidth(20)// 设置行宽
    private Float bonus;

    @ExcelProperty(value = {"姓名"}, index = 2)
    @ColumnWidth(20)// 设置行宽
    private String sname = null;

    public payroll(String date, String scode, Float basesalary, Float bonus) {
        super(date, scode);
        this.basesalary = basesalary;
        this.bonus = bonus;
    }

    public payroll(Float basesalary, Float bonus, String sname) {
        this.basesalary = basesalary;
        this.bonus = bonus;
        this.sname = sname;
    }

    public payroll(String date, String scode, Float basesalary, Float bonus, String sname) {
        super(date, scode);
        this.basesalary = basesalary;
        this.bonus = bonus;
        this.sname = sname;
    }

    public payroll() {
    }

    public void setSname(String sname) {
        this.sname = sname;
    }

    public String getSname() {
        return sname;
    }

    public Float getBasesalary() {
        return basesalary;
    }

    public void setBasesalary(Float basesalary) {
        this.basesalary = basesalary;
    }

    public Float getBonus() {
        return bonus;
    }

    public void setBonus(Float bonus) {
        this.bonus = bonus;
    }

    @Override
    public String toString() {
        return "payroll{" +
                "basesalary=" + basesalary +
                ", bonus=" + bonus +
                ", sname='" + sname + '\'' +
                '}';
    }
}